package com.cangshi.service;

import com.cangshi.entity.*;

import java.util.List;

/**
 * Created by Eoly on 2017/1/16.
 */
public interface AddressService {

    /**
     *
     * @return
     */
    public List<Address> findAddressByUserId(Integer userId);


    /**
     *
     * @return
     */
    public Address findAddressByAddressId(Integer addressId);

    /**
     *
     * @param address
     * @return
     */
    public int addAddress(Address address);

    /**
     *
     * @return
     */
    public int getIdFromLastAdd();

    /**
     *
     * @param addressId
     * @return
     */
    public int deleteAddressByAddressId(int addressId);

    /**
     *
     * @param address
     * @return
     */
    public int updateAddress(Address address);
}
